<?php

namespace common\models\base;

use Yii;

/**
 * This is the model class for table "{{%loan_apply_images_upload}}".
 *
 * @property int $id
 * @property string $company_code
 * @property string $loan_date
 * @property string $loan_code
 * @property string $images
 * @property int $status
 * @property int $uploaded_at
 */
class LoanApplyImagesUpload extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%loan_apply_images_upload}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['company_code', 'loan_date', 'loan_code', 'status'], 'required'],
            [['images'], 'string'],
            [['status', 'uploaded_at'], 'integer'],
            [['company_code'], 'string', 'max' => 20],
            [['loan_date'], 'string', 'max' => 8],
            [['loan_code'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'company_code' => Yii::t('app', 'Company Code'),
            'loan_date' => Yii::t('app', 'Loan Date'),
            'loan_code' => Yii::t('app', 'Loan Code'),
            'images' => Yii::t('app', 'Images'),
            'status' => Yii::t('app', 'Status'),
            'uploaded_at' => Yii::t('app', 'Uploaded At'),
        ];
    }
}
